﻿namespace Jim.OA;

/// <summary>
/// 返回流程地址，会校验权限，并拼接相关参数，返回的地址单独访问还需要加单点参数
/// </summary>
[Sdk("/api/workflow/paService/getRequestFlowChart" , "返回流程地址，会校验权限，并拼接相关参数，返回的地址单独访问还需要加单点参数", "get")]
public class OAGetRequestChartInput : OAUserRequest<OAGetRequestChartOutput>, ISdkCustomDic
{
    [Required(ErrorMessage = "流程ID不能为空")]
    public string RequestId { get; set; }

    public SdkDictionary Dic()
    {
        SdkDictionary dic = new SdkDictionary();
        dic.Add("requestId", RequestId);
        dynamic otherParams = new ExpandoObject();
        dic.Add("otherParams", otherParams);
        return dic;
    }
}


public class OAGetRequestChartOutput : SdkResponse<OAGetRequestChart> { }

public class OAGetRequestChart
{
    public string chartUrl { get; set; }
}